﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameAutomationLibrary
{
    public class GameSettingBase : Dictionary< string ,string >
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public string GetByKey(string key)
        {
            if (this.ContainsKey(key))
                return this[key];
            return string.Empty;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        public void SetByKey(string key, string value)
        {
            this[key] = value;
        }

    }
}
